<!--
*Author：富行天下团队

 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Mall/V_signin_signout.js此处编写
 -->
<template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields" :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from '@/extension/Camp/V_signin_signout.js'
import ViewGrid from '@/components/basic/ViewGrid.vue'
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: 'id',
        footer: 'Foots',
        cnName: '签到列表',
        name: 'V_signin_signout',
        url: '/V_signin_signout/',
        sortName: 'createDate',
      },
      extend: extend,
      editFormFields: {},
      editFormOptions: [],
      searchFormFields: { campsiteId: '', phase_id_fk: '' },
      searchFormOptions: [
        [
          { field: 'campsiteId', title: '营地', type: 'select', dataKey: 'campsite', width: 90, align: 'left' },
          { field: 'phase_id_fk', title: '营期', type: 'select', dataKey: '', data: [], width: 90, align: 'left' },
        ],
      ],
      columns: [
        { field: 'name', title: '营员姓名', type: 'string', width: 90, align: 'left' },
        {
          field: 'gender',
          title: '性别',
          type: 'int',
          width: 90,
          align: 'left',
          bind: {
            key: '',
            data: [
              { key: '1', value: '男' },
              { key: '2', value: '女' },
              { key: '0', value: '女' },
            ],
          },
        },
        { field: 'head_img', title: '头像', type: 'img', width: 120, align: 'left' },
        { field: 'parentsPhone', title: '监护人手机', type: 'string', width: 100, align: 'left' },
        // { field: 'remarks', title: '注意事项/备注', type: 'string', width: 220, align: 'left' },
        { field: 'creator', title: '签到人', type: 'string', width: 120, align: 'left' },
        { field: 'time', title: '签到时间', type: 'datetime', width: 190, align: 'left', sortable: true },
        { field: 'entryNickname', title: '入口名称', type: 'string', width: 220, align: 'left', sortable: true },
        //  {field:'id',title:'id',type:'int',width:120,require:true,align:'left'}
      ],
      detail: {
        cnName: '#detailCnName',
        columns: [],
        sortName: '',
        key: '',
      },
    }
  },
}
export default vueParam
</script>
